package com.quanyan.pay.enums;

/**
 * @author songzj
 * @date 16/6/24-10:54
 */
public enum RefundStatusEnum {


    APPLY_SUBMIT((byte) 0, "APPLY_SUBMIT", "退款申请已提交.", false),
    PROCESSING((byte) 2, "PROCESSING", "第三方处理中.", false),
    NOTSURE((byte) 3, "NOTSURE", "退款失败,需要重新发起退款请求.", false),
    SUCCESS((byte) 4, "SUCCESS", "退款成功.", true),
    FAIL((byte) 5, "FAIL", "退款失败.", false),
    CHANGE((byte) 6, "CHANGE", "退款失败,需要人工退款.", false),;
    private boolean success;
    private byte id;
    private String code;
    private String label;

    RefundStatusEnum(byte id, String code, String label, boolean success) {
        this.success = success;
        this.id = id;
        this.code = code;
        this.label = label;
    }

    public boolean isSuccess() {
        return success;
    }

    public byte getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }
}
